+2008-06-24 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtktypeutils.h: deprecate gtk_type_init() unconditionally
+ (also for GTK_COMPILATION). Move some deprecated typedefs around
+ to reduce the mess with zillions of deprecated sections.
+
+ * gtk/gtkmain.c (do_post_parse_initialization): replace the call
+ to gtk_type_init() by g_type_init() and gtk_object_get_type() even
+ though the latter is probably completely pointless.
+
2008-06-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkdialog.c (gtk_dialog_init): also revert change in how
g_warning ("Whoever translated default:LTR did so wrongly.\n");
}
- gtk_type_init (0);
- _gtk_accel_map_init ();
+ /* do what the call to gtk_type_init() used to do */
+ g_type_init ();
+ gtk_object_get_type ();
+
+ _gtk_accel_map_init ();
_gtk_rc_init ();
/* Set the 'initialized' flag.
guint n_args,
GtkArg *args);
-#ifndef GTK_DISABLE_DEPRECATED
-
-typedef void (*GtkDestroyNotify) (gpointer data);
-typedef void (*GtkSignalFunc) (void);
-
-#endif /* GTK_DISABLE_DEPRECATED */
-
/* This used to be defined in gtkitemfactory.h, but moved over here after
* the complete deprecation of that header
*/
#ifndef GTK_DISABLE_DEPRECATED
+typedef void (*GtkDestroyNotify) (gpointer data);
+typedef void (*GtkSignalFunc) (void);
+
#define GTK_SIGNAL_FUNC(f) G_CALLBACK(f)
typedef struct _GtkTypeInfo GtkTypeInfo;
GtkClassInitFunc base_class_init_func;
};
+void gtk_type_init (GTypeDebugFlags debug_flags);
GtkType gtk_type_unique (GtkType parent_type,
const GtkTypeInfo *gtkinfo);
gpointer gtk_type_class (GtkType type);
#endif /* GTK_DISABLE_DEPRECATED */
-#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
-/* deprecated, use g_type_init() instead */
-void gtk_type_init (GTypeDebugFlags debug_flags);
-#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */
-
G_END_DECLS
#endif /* __GTK_TYPE_UTILS_H__ */